package com.sand.feign;

import com.sand.entity.inventory.inventory;
import com.sand.result.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("juao-inventory")
public interface inventoryFeign {

    /**
     * 查询某个商品拼的库存
     */
    @PostMapping("/inventory/get")
    ResponseResult<inventory> get(@RequestBody Integer shoppingid);


    /**
     * 新增库存
     */
    @PostMapping("/inventory/add")
    public ResponseResult<Integer> add(@RequestBody inventory inventory);

}
